<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/5/24 0024
 * Time: 11:17
 */

namespace app\wap\controller;


use think\Db;

class Vip extends Middle
{
    public $vip;
    public $vip_expire;
    function __construct()
    {
        parent::__construct();
        $map = ['uid'=>$this->uid];
      	
        $ref = Db::name('user_service')->where($map)->find();
        $this->vip = $ref['vip'];      	
        $this->vip_expire = $ref['expire'];
       // if($ref['vip'] == 0)exit($this->encode('请订阅服务',-2));
     //   if($ref['expire'] != 0 && $ref['expire'] < time())exit($this->encode('订阅服务已到期,请续费',-2));
    }
}